﻿'use strict';
(function () {
    // 注意JS的绑定顺序，第一组绑定的文件可以用angular.module('MyControllers', []);，后续的文件只能用angular.module('MyControllers')
    var service = angular.module('MyServices');

    service.factory('ExamineeService', ['$http', function (http) {
        var methods = {
            list: {
                getList: function () {
                    return http.get('GetSubjectList?token=' + Token);
                },
                isSignSubject: function (model) {
                    return http.post('IsSignSubject', { token: Token, appId: model.appID, planId: model.examPlanInfoID, subjectId: model.examSubjectID });
                }
            },
            notice: {
                getCountDown: function () {
                    return http.get('GetExamTime?token=' + Token);
                },
                getJsonTemplate: function () {
                    return http.get('GetExamPaper?token=' + Token);
                },
                getTime: function () {
                    return http.get('GetPreviewPaperTime?token=' + Token);
                }
            }
        };
        return methods;
    }]);
})();